package com.liuyu.lottery.domain.bo;

import com.liuyu.common.orm.core.domain.BaseEntity;
import com.liuyu.lottery.domain.Mail;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * MailController业务对象 tbl_mail
 *
 * @author liuyu
 * @date 2024-03-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AutoMapper(target = Mail.class, reverseConvertGenerate = false)
public class MailBo
{

    /**
     *
     */
    private Integer id;

    /**
     * smtp服务地址
     */
    @NotBlank(message = "smtp服务地址不能为空")
    private String host;

    /**
     * 端口
     */
    @NotNull(message = "端口不能为空")
    private Integer port;

    /**
     *
     */
    @NotBlank(message = "不能为空")
    @Email
    private String fromMail;

    /**
     * 发送密钥
     */
    @NotBlank(message = "发送密钥不能为空")
    private String pass;

    /**
     * 接收人邮箱多个使用逗号分隔
     */
    @NotBlank(message = "接收人邮箱多个使用逗号分隔不能为空")
    private String toMail;

    /**
     * 是否加密1-加密,0不加密
     */
    @NotNull(message = "是否加密1-加密,0不加密不能为空")
    private Integer sslEnable;


}
